package cn.com.utt.common.vo;

import java.util.ArrayList;
import java.util.List;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class TableOutput<T> {
	/*
	 * 开始索引
	 */
	@NotNull
	@Min(0)
	private Integer start;

	/*
	 * 记录总数
	 */
	@NotNull
	@Min(-1)
	private Integer total;

	/*
	 * 每页行数
	 */
	@NotNull
	@Min(0)
	private Integer rows;

	private List<T> list = new ArrayList<>();

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> devices) {
		this.list = devices;
	}

}
